//$Id:  $
//$Date:  $
//$Author:  $
package com.ajaxit.prisa.struts;

import javax.servlet.http.HttpServletRequest;

import org.apache.struts.action.ActionErrors;
import org.apache.struts.action.ActionForm;
import org.apache.struts.action.ActionMapping;
import org.apache.struts.action.ActionMessage;

public class GenerarSubmenuForm extends ActionForm {
	private static final long serialVersionUID = 1L;
	private String modulo;

	public ActionErrors validate( ActionMapping mapping, HttpServletRequest request ) {
		ActionErrors errors = new ActionErrors ( );
		if ( modulo == null || modulo.length ( ) < 1 ) 
			errors.add ( "modulo", new ActionMessage ( "error.missing.modulo" ) );
		return errors;
	}

	public String getModulo ( ) {
		return modulo;
	}

	public void reset ( ) {
		modulo = null;
	}

	public void setModulo ( String fecha ) {
		this.modulo = fecha;
	}
}
//$Revision:  $
